import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AccountLayoutComponent } from './_layout/layout.component';
import { LoginComponent } from './login/login.component';
import { ForgetComponent } from './forget/forget.component';
import { ThirdLoginComponent } from './thirdLogin/third-login.component';

const routes: Routes = [
  {
    path: '',
    component: AccountLayoutComponent,
    children: [
      {
        path: 'login',
        component: LoginComponent,
        data: { titleI18n: 'account.menu.login' },
      },
    ],
  },
  {
    path: 'forget',
    component: ForgetComponent,
  },
  {
    path: 'authredirect',
    component: ThirdLoginComponent,
  },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class AccountRoutingModule {}
